AsanaPlugins\WooCommerce\ProductBundles\ProductBundleHooks D

Total Complexity 366
Dependencies 4
Dependents 1
Total lines 1,309
Lines of code 1,009
Logical lines of code 630
Comment lines 70
Methods 42
Properties 0

Methods 42

Method Rating Maintainability Complexity Lines of code
add_to_cart_validation()
D
28
43 114
ajax_add_order_item_meta()
C
34 25 81
update_cart_validation_bundle()
C
39 25 56
cart_item_price_bundle()
B
40 21 56
before_calculate_totals()
B
43 21 43
add_bundle_items_to_cart()
B
40 20 55
product_bundle_position_hooks()
B
43 19 48
cart_item_subtotal_bundle()
A
46 16 35
add_bundle_item_to_cart()
A
44 13 41
get_price_html()
A
45 11 40
cart_shipping_packages()
A
51 11 27
cart_item_subtotal()
A
50 11 26
cart_item_price()
A
51 8 28
cart_contents_weight()
A
53 8 23
coupon_is_valid_for_product()
A
55 8 20
add_items_field()
A
55 8 19
cart_loaded_from_session()
A
55 8 19
add_cart_item_data()
A
55 8 18
get_item_count()
S
58 7 14
cart_contents_count()
S
58 7 14
remove_bundle_from_cart()
S
60 6 12
get_cart_item_from_session()
S
59 5 15
init()
S
43 3 44
cart_item_remove_link()
S
61 5 13
checkout_create_order_line_item()
S
60 5 13
formatted_line_subtotal()
S
62 4 12
update_cart_validation()
S
66 4 9
before_mini_cart_contents()
S
67 4 8
cart_item_name()
S
60 3 12
loop_add_to_cart_link()
S
65 3 9
order_again_cart_item_data()
S
64 3 10
display_product_bunlde()
S
69 3 7
cart_item_class()
S
67 3 8
cart_item_restored()
S
67 3 8
cart_item_removed()
S
67 3 8
cart_item_quantity()
S
71 2 6
add_to_cart()
S
70 2 6
bundle_product_class()
S
71 2 6
before_order_item_meta()
S
67 2 7
hidden_order_itemmeta()
S
63 1 12
add_to_cart_template()
S
81 1 3
product_type_selector()
S
75 1 4